package com.lvyp.server.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户登录实体类：不使用Admin类做实体类是因为该类太大，
 * 登录只需要用户名和密码，所以单独创建一个类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "AdminLogin对象",description = "专门用于登录的实体类")
public class AdminLoginParam {
    @ApiModelProperty(value = "用户名",required = true)
    private String username;
    @ApiModelProperty(value = "密码",required = true)
    private String password;
    @ApiModelProperty(value = "验证码",required = true)
    private String code;
}
